package com.crs.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class UserFirstReviewDTO extends BaseReviewDTO {
    @NotNull(message = "借用记录ID不能为空")
    private Long borrowId;
    @Pattern(regexp = "1|2|3|4|5", message = "评分只有1-5星")
    private Integer rating;
}
